package com.googlecode.keepwalking;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ServiceStarter extends BroadcastReceiver {
	private static final String TAG = "ServiceStarter";
	
	@Override
	public void onReceive(Context context, Intent intent) {
		Log.d(TAG, "onReceive");
		Intent service = new Intent(context, WalkingDetector.class);
		service.setAction(WalkingDetector.ACTION_START);
		context.startService(service);
	}

}
